{% extends "base.html" %}
{% block base %}
<div style="background:url(http://img02.3dmgame.com/uploads/allimg/130330/180_130330134049_1.jpg) no-repeat;
            background-size:100% 100%;
            top:0px;
            left:0px;
            width:100vw;
            height:100vh;
            position:absolute;">
    <div class="container" style="width:300px">
      <form class="form-signin" action="/index/" method="post">
        <h2 class="form-signin-heading">Please sign in</h2>
        <label for="input_username" class="sr-only">input_username</label>
        <input type="text" id="input_username"  name="username" class="form-control" placeholder="请输入用户名">
        <label for="input_password" class="sr-only">Password</label>
        <input type="password" id="input_password" name="password" class="form-control" placeholder="请输入密码" required>
         <div style="color:red">{{error}}</div>
          {% csrf_token %}
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
      </form>
    </div>
</div>
{% endblock %}